package com.longxiao.vo;

import com.longxiao.validator.anno.ValiString;

/**
 * Created by yusong on 2017/5/4.
 * 新增积分记录请求
 */
public class AddCpRecordVo {
    //用户ID
    @ValiString(maxLen = 50, err = "错误的请求参数")
    private String userId;
    //用户积分来源
    private String source;
    //评价ID，当由评价获取得到时有记录
    private Integer commentId;
    //排课ID,当上课或缺勤引起的积分有记录
    @ValiString(maxLen = 50, err = "错误的请求参数")
    private String classId;
    //本次获取积分数目(正数获得积分，负数扣除积分)
    private Integer cpScore;
    //积分备注
    @ValiString(maxLen = 500, err = "错误的请求参数")
    private String remark;

    @Override
    public String toString() {
        return "AddCpRecordVo{" +
                "userId='" + userId + '\'' +
                ", source='" + source + '\'' +
                ", commentId=" + commentId +
                ", classId='" + classId + '\'' +
                ", cpScore=" + cpScore +
                '}';
    }

    public AddCpRecordVo() {

    }

    public AddCpRecordVo(String userId, String source, Integer commentId, String classId, Integer cpScore, String remark) {
        this.userId = userId;
        this.source = source;
        this.commentId = commentId;
        this.classId = classId;
        this.cpScore = cpScore;
        this.remark = remark;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public Integer getCommentId() {
        return commentId;
    }

    public void setCommentId(Integer commentId) {
        this.commentId = commentId;
    }

    public String getClassId() {
        return classId;
    }

    public void setClassId(String classId) {
        this.classId = classId;
    }

    public Integer getCpScore() {
        return cpScore;
    }

    public void setCpScore(Integer cpScore) {
        this.cpScore = cpScore;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
